package com.jiyun.controller;

import com.jiyun.mapper.LocaMapper;
import com.jiyun.model.management.Loca;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("Loca")
@CrossOrigin
public class LocaController {
    @Autowired
    LocaMapper locaMapper;
    @RequestMapping("findAll")
    public List<Loca> findAll(){
        return locaMapper.selectList(null);
    }
}
